const index = r => require.ensure([], () => r(require('@/page/index')), 'index')

const RepairContainer = r => require.ensure([], () => r(require('@/page/RepairProject/RepairContainer')), 'RepairContainer')
const Entry = r => require.ensure([], () => r(require('@/page/RepairProject/Entry')), 'Entry')
const List = r => require.ensure([], () => r(require('@/page/RepairProject/List')), 'List')
const Order = r => require.ensure([], () => r(require('@/page/RepairProject/Order')), 'Order')
const NewOrder = r => require.ensure([], () => r(require('@/page/RepairProject/NewOrder')), 'NewOrder')
const Search = r => require.ensure([], () => r(require('@/page/RepairProject/Search')), 'Search')
const Test = r => require.ensure([], () => r(require('@/page/RepairProject/Test')), 'Test')

const MeetIng = r => require.ensure([], () => r(require('@/page/MeetIng/index')), 'MeetIng')
const MeetIngList = r => require.ensure([], () => r(require('@/page/MeetIng/meetingList')), 'meetingList')
const MakeMeeting = r => require.ensure([], () => r(require('@/page/MeetIng/MakeMeeting')), 'MakeMeeting')
const editMakeMetting = r => require.ensure([], () => r(require('@/page/MeetIng/editMakeMetting')), 'editMakeMetting')
const selectAllMeeting = r => require.ensure([], () => r(require('@/page/MeetIng/selectAllMeeting')), 'selectAllMeeting')
const addUserMetting = r => require.ensure([], () => r(require('@/page/MeetIng/addUserMetting')), 'addUserMetting')
const screenMetting = r => require.ensure([], () => r(require('@/page/MeetIng/screenMetting')), 'screenMetting')
const meetingInfo = r => require.ensure([], () => r(require('@/page/MeetIng/meetingInfo')), 'meetingInfo')
const arrangeMeeting = r => require.ensure([], () => r(require('@/page/MeetIng/arrangeMeeting')), 'arrangeMeeting')
const MeetingRootInfo = r => require.ensure([], () => r(require('@/page/MeetIng/MeetingRootInfo')), 'MeetingRootInfo')

export default [
  {
    path: '/',
    component: index,
    name: '首页'
  },
  {
    path: '/repair',
    component: RepairContainer,
    name: 'Repair',
    children: [
      {path: '', name: 'Entry', component: Entry},
      {path: 'list/:type', name: 'List', component: List},
      {path: 'order/:usertype/:id', name: 'Order', component: Order},
      {path: 'neworder', name: 'NewOrder', component: NewOrder, meta:{transition:'fromBottom'}},
      {path: 'search/:type', name: 'Search', component: Search, meta:{transition:'fromBottom'}},
      {path: 'test', name: 'Test', component: Test}
    ]
  },
  {
    path: '/MeetIng',
    name: 'MeetIng',
    component: MeetIng,
    children: [
      {path: '', name: '会议室列表', component: MeetIngList},
      {path: '/MakeMeeting', name: '预约会议室', component: MakeMeeting},
      {path: '/editMakeMetting', name: '编辑确认预约会议室', component: editMakeMetting},
      {path: '/selectAllMeeting', name: '选择会议室', component: selectAllMeeting},
      {path: '/addUserMetting', name: '添加用户参加会议', component: addUserMetting},
      {path: '/screenMetting', name: '会议室筛选', component: screenMetting},
      {path: '/meetingInfo', name: '会议详情', component: meetingInfo},
      {path: '/arrangeMeeting', name: '会议安排', component: arrangeMeeting},
      {path: '/MeetingRootInfo', name: '会议室详情', component: MeetingRootInfo}
    ]
  },
  // 科研平台模块
  {
    path:'/scidentific',
    component:require("@/page/scientificPartform/"),
  },
  // 资产管理模块
  {
    path:'/assignManager',
    component:require("@/page/assignManager/"),
  },
  // 资金卡模块
  {
    path:'/fundCard',
    component:require("@/page/fundCard/"),
  },
]
